package com.lx.javasunmmrize.proxy.dynamicProxy;

/**
 * @Description TODO
 * @Author lx
 * @Date 2021/2/28 20:36
 **/
public class Client {
    public static void main(String[] args) {
        ITeacher teacherDao = new TeacherDao();
        ITeacher proxyInstance = (ITeacher) new DyProxy(teacherDao).getProxyInstance();
        proxyInstance.teach();
//        System.out.println(proxyInstance.getClass());
    }
}
